GtkImage: Move g_clear_object() to gtk_image_finalize()
authorMichael Vogt <mvo@ubuntu.com>
Mon, 16 Apr 2012 04:51:43 +0000 (06:51 +0200)
committerMartin Pitt <martinpitt@gnome.org>
Mon, 16 Apr 2012 04:51:43 +0000 (06:51 +0200)
commit19e55d620fc0793ec688377bb11b77bdd2c9e9cb
treed2ab0c5c6428436469d19df2f7312f460acc65b8
parent298ba51d313b2c09293070b18c65b71f510b85b8
GtkImage: Move g_clear_object() to gtk_image_finalize()

This moves the freeing of the icon_helper from the destory to the finalize
function to avoid segfaults when trying to access a destroyed object before it
is disposed. This often happens in signal handlers which get called
asynchronously after destroy.

https://bugzilla.gnome.org/show_bug.cgi?id=674050
gtk/gtkimage.c